package com.zhku.laosiji.dao;

import com.zhku.laosiji.pojo.Park;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ParkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Park record);

    int insertSelective(Park record);

    Park selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Park record);

    int updateByPrimaryKey(Park record);

    int updateStatus(@Param("parkId") Integer parkId,@Param("status") Integer status);
    List<Park> selectAllPark();

    Integer countTotalPark();

    Integer countSearchPark(String parkname);

    List<Park> selectParkByName(String parkname);

    int updateStatus(Integer parkId);

    List<Park> find(@Param("status") Integer status);

}